Magellan is a massively parallel test runner. By distributing tests across available CPU cores, Magellan blazes through long test suites in a fraction of the time, aggregating results in one friendly report.
There are two ways to tell magellan how you want to scale your tests:
All command line arguments of magellan and its components (executors, reporters and plugins) that are enabled can be listed out by running following command:
./node_modules/.bin/magellan --help
E.g. Run tests with 30 workers, 5 retry attempts per failed test:
./node_modules/.bin/magellan --max_workers 30 --max_test_attempts 5
All command line arguments of magellan can be placed into magellan.json
. You can copy the key value pair straightly into it.
For example,
./node_modules/.bin/magellan --max_workers 30
Is equal to this in magellan.json file:
{
"max_workers": 30
}
If a configuration exists in both magellan.json and command line arguments, the one in magellan.json will take effect.
Magellan searches magellan.json in your repo root by default. If you put it in a different folder, make sure to tell where it is by:
./node_modules/.bin/magellan --config ${PATH_TO_MAGELLAN.JSON}
#Specify one tag:
$ magellan --tag=smoke
#Specify multiple tags:
$ magellan --tags=smoke,web